package cn.iocoder.yudao.module.book.controller.admin.users.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 用户 Response VO")
@Data
@ExcelIgnoreUnannotated
public class userDTORespVO {

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15250")
    @ExcelProperty("用户id")
    private Integer userId;

    @Schema(description = "微信标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "9692")
    @ExcelProperty("微信标识")
    private String openid;

    @Schema(description = "昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @ExcelProperty("昵称")
    private String nickname;

    @Schema(description = "头像", example = "https://www.iocoder.cn")
    @ExcelProperty("头像")
    private String avatarUrl;

    @Schema(description = "手机号")
    @ExcelProperty("手机号")
    private String mobile;

    @Schema(description = "是否为会员")
    @ExcelProperty(value = "是否为会员", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer isMember;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}